package biz.ezcom.design.pattern.decorator;

public class Client {
	public static void main(String[] args) {
		ComponentPerson person = new ComponentPerson();

		ComponentDecoratorShoes shoes = new ComponentDecoratorShoes();
		ComponentDecoratorTrousers trousers = new ComponentDecoratorTrousers();
		ComponentDecoratorClothes clothes = new ComponentDecoratorClothes();
		ComponentDecoratorHat hat = new ComponentDecoratorHat();

		shoes.setComponent(trousers);
		trousers.setComponent(clothes);
		clothes.setComponent(hat);
		hat.setComponent(person);
		
		shoes.operation();
	}
}
